/*
 * XML Type:  InvestmentStatementMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InvestmentStatementMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InvestmentStatementMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InvestmentStatementMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractMessageSetVersionImpl implements net.ofx.types.x2003.x04.InvestmentStatementMessageSetV1
{
    
    public InvestmentStatementMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TRANDNLD$0 = 
        new javax.xml.namespace.QName("", "TRANDNLD");
    private static final javax.xml.namespace.QName OODNLD$2 = 
        new javax.xml.namespace.QName("", "OODNLD");
    private static final javax.xml.namespace.QName POSDNLD$4 = 
        new javax.xml.namespace.QName("", "POSDNLD");
    private static final javax.xml.namespace.QName BALDNLD$6 = 
        new javax.xml.namespace.QName("", "BALDNLD");
    private static final javax.xml.namespace.QName CANEMAIL$8 = 
        new javax.xml.namespace.QName("", "CANEMAIL");
    private static final javax.xml.namespace.QName INV401KDNLD$10 = 
        new javax.xml.namespace.QName("", "INV401KDNLD");
    
    
    /**
     * Gets the "TRANDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getTRANDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRANDNLD$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "TRANDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetTRANDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(TRANDNLD$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "TRANDNLD" element
     */
    public void setTRANDNLD(net.ofx.types.x2003.x04.BooleanType.Enum trandnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRANDNLD$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRANDNLD$0);
            }
            target.setEnumValue(trandnld);
        }
    }
    
    /**
     * Sets (as xml) the "TRANDNLD" element
     */
    public void xsetTRANDNLD(net.ofx.types.x2003.x04.BooleanType trandnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(TRANDNLD$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(TRANDNLD$0);
            }
            target.set(trandnld);
        }
    }
    
    /**
     * Gets the "OODNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getOODNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OODNLD$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "OODNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetOODNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(OODNLD$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "OODNLD" element
     */
    public void setOODNLD(net.ofx.types.x2003.x04.BooleanType.Enum oodnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OODNLD$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OODNLD$2);
            }
            target.setEnumValue(oodnld);
        }
    }
    
    /**
     * Sets (as xml) the "OODNLD" element
     */
    public void xsetOODNLD(net.ofx.types.x2003.x04.BooleanType oodnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(OODNLD$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(OODNLD$2);
            }
            target.set(oodnld);
        }
    }
    
    /**
     * Gets the "POSDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getPOSDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(POSDNLD$4, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "POSDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetPOSDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(POSDNLD$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "POSDNLD" element
     */
    public void setPOSDNLD(net.ofx.types.x2003.x04.BooleanType.Enum posdnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(POSDNLD$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(POSDNLD$4);
            }
            target.setEnumValue(posdnld);
        }
    }
    
    /**
     * Sets (as xml) the "POSDNLD" element
     */
    public void xsetPOSDNLD(net.ofx.types.x2003.x04.BooleanType posdnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(POSDNLD$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(POSDNLD$4);
            }
            target.set(posdnld);
        }
    }
    
    /**
     * Gets the "BALDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getBALDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BALDNLD$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "BALDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetBALDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(BALDNLD$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BALDNLD" element
     */
    public void setBALDNLD(net.ofx.types.x2003.x04.BooleanType.Enum baldnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BALDNLD$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BALDNLD$6);
            }
            target.setEnumValue(baldnld);
        }
    }
    
    /**
     * Sets (as xml) the "BALDNLD" element
     */
    public void xsetBALDNLD(net.ofx.types.x2003.x04.BooleanType baldnld)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(BALDNLD$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(BALDNLD$6);
            }
            target.set(baldnld);
        }
    }
    
    /**
     * Gets the "CANEMAIL" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANEMAIL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANEMAIL$8, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANEMAIL" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANEMAIL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANEMAIL$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANEMAIL" element
     */
    public void setCANEMAIL(net.ofx.types.x2003.x04.BooleanType.Enum canemail)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANEMAIL$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANEMAIL$8);
            }
            target.setEnumValue(canemail);
        }
    }
    
    /**
     * Sets (as xml) the "CANEMAIL" element
     */
    public void xsetCANEMAIL(net.ofx.types.x2003.x04.BooleanType canemail)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANEMAIL$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANEMAIL$8);
            }
            target.set(canemail);
        }
    }
    
    /**
     * Gets the "INV401KDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getINV401KDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KDNLD$10, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "INV401KDNLD" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetINV401KDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(INV401KDNLD$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "INV401KDNLD" element
     */
    public boolean isSetINV401KDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INV401KDNLD$10) != 0;
        }
    }
    
    /**
     * Sets the "INV401KDNLD" element
     */
    public void setINV401KDNLD(net.ofx.types.x2003.x04.BooleanType.Enum inv401KDNLD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KDNLD$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INV401KDNLD$10);
            }
            target.setEnumValue(inv401KDNLD);
        }
    }
    
    /**
     * Sets (as xml) the "INV401KDNLD" element
     */
    public void xsetINV401KDNLD(net.ofx.types.x2003.x04.BooleanType inv401KDNLD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(INV401KDNLD$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(INV401KDNLD$10);
            }
            target.set(inv401KDNLD);
        }
    }
    
    /**
     * Unsets the "INV401KDNLD" element
     */
    public void unsetINV401KDNLD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INV401KDNLD$10, 0);
        }
    }
}
